<?php
namespace backend\modules\business\methods;

use backend\modules\business\methods\base\HandleBase;
class Entrance extends HandleBase{
	/**
	 * 存放当前类实例
	 * @var unknown
	 */
	private static $_instance;
	
	private function __construct($object)
	{
		if(!is_object($object)){
			throw new \Exception('传入参数不是对象!');
		}
		parent::init($object);
	}
	private function __clone()
	{
		throw new \Exception('不能被克隆!');
	}
	/**
	 * 获取实例
	 * @date: 2016-2-25
	 * @author: futao
	 */
	public static function Instance($object)
	{
		if(!(self::$_instance instanceof self)){
			self::$_instance = new self($object);
		}
		return self::$_instance;
	}
}

?>